package bean;

import java.io.Serializable;
import java.util.UUID;

/**
 * Created by likang on 2017/7/12.
 */
public class TradeConsumptionDetail  implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 所属消费主单
     */
    private String mainId;
    /**
     * 消费菜品(系统中对象)
     */
    private String foodId;
    /**
     * 业务类型
     */
    private String businessTypeId;
    /**
     * 菜品原单价
     */
    private Double price;
    /**
     * 数量
     */
    private Double quantity;
    /**
     * 实际总额(打折后)
     */
    private Double actualAmount;
    /**
     * 人工折扣(前台输入)
     */
    private Double handDiscount;
    /**
     * 折扣原因
     */
    private String reason;

    private String isXmlOut;//是否已导出xml

    private String refundStatus;

    public String getId() {
        if (id == null) id = UUID.randomUUID().toString().replace("-", "");
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getFoodId() {
        return foodId;
    }

    public void setFoodId(String foodId) {
        this.foodId = foodId;
    }

    public String getBusinessTypeId() {
        return businessTypeId;
    }

    public void setBusinessTypeId(String businessTypeId) {
        this.businessTypeId = businessTypeId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getActualAmount() {
        return actualAmount;
    }

    public void setActualAmount(Double actualAmount) {
        this.actualAmount = actualAmount;
    }

    public Double getHandDiscount() {
        return handDiscount;
    }

    public void setHandDiscount(Double handDiscount) {
        this.handDiscount = handDiscount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getIsXmlOut() {
        return isXmlOut;
    }

    public void setIsXmlOut(String isXmlOut) {
        this.isXmlOut = isXmlOut;
    }

    public String getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(String refundStatus) {
        this.refundStatus = refundStatus;
    }
}
